package com.example.weather_app.core;

import java.util.List;
import com.example.weather_app.core.ForecastDayData;
public class WeatherData {
    private String currentTemp;  // 当前温度（如 "24.0"）
    private String humidity;     // 湿度（如 "31%"）
    private String airQuality;   // 空气质量（如 "良"）
    private double pm25;         // PM2.5（如 40.0）
    private String healthTip;    // 健康提示（如 "极少数敏感人群应减少户外活动"）
    private List<ForecastDayData> forecastList;  // 未来多天预报列表

    // 构造方法
    public WeatherData(String currentTemp, String humidity, String airQuality,
                   double pm25, String healthTip, List<ForecastDayData> forecastList) {
        this.currentTemp = currentTemp;
        this.humidity = humidity;
        this.airQuality = airQuality;
        this.pm25 = pm25;
        this.healthTip = healthTip;
        this.forecastList = forecastList;
    }

    // Getter 方法（根据需要添加 Setter）
    public String getCurrentTemp() { return currentTemp; }
    public String getHumidity() { return humidity; }
    public String getAirQuality() { return airQuality; }
    public double getPm25() { return pm25; }
    public String getHealthTip() { return healthTip; }
    public List<ForecastDayData> getForecastList() { return forecastList; }
}
